<?php

namespace app\common\model;

use think\Model;


class Setting extends Model
{

    

    

    // 表名
    protected $name = 'setting';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];
	
	
	public function goods() {
		return $this->belongsTo('goods', 'reward_goods_id', 'id', '', 'left')->setEagerlyType(0);
	}
	
	public function spec() {
		return $this->belongsTo('goodsSpec', 'reward_spec_id', 'id', '', 'left')->setEagerlyType(0);
	}






}
